exports.data = {
	json: {
		kind: 'Snippet',
		body: ['"t-cell": "tdesign-miniprogram/cell/cell"'],
		detail: 'Cell 单元格',
		documentation: `在app.json或index.json中引入组件`,
	},
	wxml: {
		kind: 'Snippet',
		body: ['<t-cell${1}>${2}</t-cell>'],
		detail: 'Cell 单元格',
		documentation: `单元格为列表中的单个展示项。`,
		attrs: [
			{
				kind: 'Field',
				body: ['align='],
				detail: 'align',
				documentation:
					'内容的对齐方式，默认居中对齐。可选项：top/middle/bottom',
				vals: {
					kind: 'Value',
					body: ['top', 'middle', 'bottom'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['arrow'],
				detail: 'arrow',
				documentation: '是否展示右侧箭头并开启点击反馈',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['bordered'],
				detail: 'border',
				documentation: '是否显示下边框',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['description='],
				detail: 'description',
				documentation: '标题下方的描述信息String / Slot',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['hover'],
				detail: 'hover',
				documentation: '是否开启点击反馈',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['image='],
				detail: 'image',
				documentation: '主图',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['jump-type='],
				detail: 'jump-type',
				documentation:
					'链接跳转类型，可选值为 redirectTo switchTab reLaunch navigateTo',
				vals: {
					kind: 'Value',
					body: ['redirectTo', 'switchTab', 'reLaunch', 'navigateTo'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['left-icon='],
				detail: 'left-icon',
				documentation:
					'左侧图标名称或图片链接，可选值见 Icon 组件String / Object / Slot	',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['right-icon='],
				detail: 'right-icon',
				documentation:
					'右侧图标名称或图片链接，可选值见 Icon 组件String / Object / Slot	',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['note='],
				detail: 'note',
				documentation: '和标题同行的说明文字',
				vals: null,
			},

			{
				kind: 'Field',
				body: ['title='],
				detail: 'title',
				documentation: '左侧标题',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['url='],
				detail: 'url',
				documentation: '点击后跳转的链接地址',
				vals: null,
			},

			{
				kind: 'Field',
				body: ['required'],
				detail: 'required',
				documentation: '是否显示表单必填星号',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			/**
         * Cell Event
          事件名	说明	参数
          bind:click	点击单元格时触发	-
         */
			{
				kind: 'Event',
				body: ['bind:click'],
				detail: 'bind:click',
				documentation: '点击右侧内容时触发',
				vals: null,
			},
			/**
         * Cell 外部样式类
          类名	说明
          custom-class	根节点样式类
          title-class	标题样式类
          label-class	描述信息样式类
          value-class	右侧内容样式类
         */
			{
				kind: 'Field',
				body: ['t-class='],
				detail: 't-class',
				documentation: '根节点样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-title='],
				detail: 't-class-title',
				documentation: '标题样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-description='],
				detail: 't-class-description',
				documentation: '描述信息样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-note='],
				detail: 't-class-note',
				documentation: '右侧内容样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-hover='],
				detail: 't-class-hover',
				documentation: '悬停样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-image='],
				detail: 't-class-image',
				documentation: '图片样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-left='],
				detail: 't-class-left',
				documentation: '左侧内容样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-left-icon='],
				detail: 't-class-left-icon',
				documentation: '左侧图标样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-center='],
				detail: 't-class-center',
				documentation: '中间（title, description）内容样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-right='],
				detail: 't-class-right',
				documentation: '右侧内容样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-right-icon='],
				detail: 't-class-right-icon',
				documentation: '右侧图标样式类',
				vals: null,
			},
		],
		/**
       * Cell Slot
        名称	说明
        -	自定义value显示内容，如果设置了value属性则不生效
        title	自定义title显示内容，如果设置了title属性则不生效
        label	自定义label显示内容，需要设置 use-label-slot属性
        icon	自定义icon显示内容，如果设置了icon属性则不生效
        right-icon	自定义右侧按钮，默认是arrow，如果设置了is-link属性则不生效
       */
		slot: {
			kind: 'Value',
			body: [
				'title',
				'note',
				'description',
				'image',
				'left-icon',
				'right-icon',
			],
			detail: 'Cell 单元格 Slot',
			documentation: `
        -	自定义value显示内容，如果设置了value属性则不生效
        title	自定义title显示内容，如果设置了title属性则不生效
        label	自定义label显示内容，需要设置 use-label-slot属性
        icon	自定义icon显示内容，如果设置了icon属性则不生效
        right-icon	自定义右侧按钮，默认是arrow，如果设置了is-link属性则不生效
        `,
			vals: null,
		},
	},
}
